<?php
namespace app\admin\validate;

class AdminUser extends \app\common\validate\Base {
	protected $rule=[
		'user_name|用户名'=>'length:5,30',
		// 'password|密码'=>'length:32',
		'email|邮箱'=>'email',
		'real_name|真实姓名'=>'length:1,20',
		'pid|上级用户' => 'check_id0:AdminUser',
		'status|状态'=>'regex:[01]'
	];
	protected $message=[
		'password'=>'密码格式不正确'
	];

	protected $create_require=['user_name',/*'password',*/'email','real_name','pid','status'];
}
?>